<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Document</title>
<script type="text/javascript">
	var Controller = {
		hide: function(){
			document.getElementById('container').style.display = 'none';
		},
		show: function(){
			document.getElementById('container').style.display = '';
		}
	};
</script>
</head>
<body>
	<button type="button" onclick="Controller.show();">창 열기</button>
	<div id="container" style="background: red; display: none;">
		<button type="button" onclick="Controller.hide();">닫기</button>
	</div>
</body>
</html>
